package model.dao;

import java.util.List;

import model.bo.Topics;

public interface ITopicsDAO {

	// property constants
	public static final String TITLE = "title";

	public static final String BODY = "body";

	public abstract void save(Topics transientInstance);

	public abstract void delete(Topics persistentInstance);

	public abstract Topics findById(java.lang.Integer id);

	public abstract List findByExample(Topics instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByTitle(Object title);

	public abstract List findByBody(Object body);

	public abstract List findAll();

	public abstract Topics merge(Topics detachedInstance);

	public abstract void attachDirty(Topics instance);

	public abstract void attachClean(Topics instance);
	//执行SQL
	public int execusql(final String sql);
	//获得数据长度
	public int getAllRowCount(String hql);
	//查询带分页
	public List queryForPage(final String hql, final int offset,final int length);

}